function viewImage(options) {
	options=options||{};
	var $dom = $(options.selector);
	var $a = $dom.children("a");
	var images = [];
	$a.each(function() {
		var img = $(this).css("background-image");
		if (img) {
			images.push(decodeURIComponent(img.substr(4, img.length - 5)));
		}
	});
	var $view = $("<div>", {
		'class': 'imageViews'
	});
	$view.append('<div class="swiper-container"><div class="swiper-wrapper"></div></div>');
	var $wrapper = $view.find(".swiper-wrapper");
	for (var i = 0; i < images.length; i++) {
		$wrapper.append('<div class="swiper-slide image-item"><img src="' + images[i] + '" /></div>')
	}
	$("body").append($view);
	$view.bind("click", function() {
		$(this).remove();
	});
	new Swiper('.swiper-container', {
		direction: 'horizontal',
		slidesPerView: '1',
		initialSlide: options.index,
		loop: false,
	});
}
function clickFooterMenu(e){
	$(this).siblings().find("ul").css("bottom","-22rem");
	$(this).find("ul").css("bottom","5rem");
	e.stopPropagation();
}
$(function(){
	$(".footer-menu > ul > li").bind("click",clickFooterMenu);
	$(window).bind("click",function(){
		$(".footer-menu ul ul").css("bottom","-22rem");
	});
});
